<?php
// +----------------------------------------------------------------------
// | QSCMS
// +----------------------------------------------------------------------
// | Copyright (c)  2025 https://www.qqss.net All rights reserved.
// +----------------------------------------------------------------------
// | Licensed QSCMS is not free software, commercial use must purchase official license from official website to avoid unnecessary legal disputes.
// +----------------------------------------------------------------------
// | Author: Contract 990504246@qq.com
// +----------------------------------------------------------------------

namespace app\userapi\event;

use think\facade\Db;

// 用户被动行为事件
class UserPassive
{
    public function action($user, $event_name)
    {
        switch ($event_name) {
            // 被关注
            case 'user.follow':
                $this->follow($user);
                break;
            // 被点赞
            case 'user.goods.like':
                $this->goodsLike($user);
                break;
            // 被回复
            case 'user.post.reply':
                $this->postReply($user);
                break;
        }
    }

    public function follow($user)
    {
        // 任务经验
    }

    public function goodsLike($user)
    {
        // 任务经验
    }

    public function postReply($user)
    {
        // 任务经验
    }

}